package org.hs.im.forensicj.view.imageviewer.action;

import org.hs.im.forensicj.Resources;
import org.hs.im.forensicj.view.ImageViewer;

import bibliothek.gui.dock.common.action.CRadioButton;

public class MouseModePanButton extends CRadioButton {

	private ImageViewer viewer;

	public MouseModePanButton(ImageViewer viewer) {
		this.viewer = viewer;
        setText( "Pan Mouse Mode" );
        setIcon( Resources.getIcon( "imageviewer.mousemode.pan" ) );

	}

	@Override
	protected void changed() {
		if(isSelected()){
			viewer.setPanMouseMode();
		}
	}

}
